Timm Bäder [Sun, 2 Jan 2022 08:46:28 +0000 (09:46 +0100)]
label: Remove a redundant assignment
clang-tidy says:
gtklabel.c:1188:15: warning: Although the value stored to 'mid' is used in the enclosing expression, the value is never actually read from 'mid'
min = mid = text_width;
^ ~~~~~~~~~~
Which seems right since mid will be assigned to at the beginning of the
next loop iteration anyway.
Matthias Clasen [Fri, 7 Jan 2022 03:16:47 +0000 (03:16 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
docs; Update supported backends
See merge request GNOME/gtk!4344
Matthias Clasen [Fri, 7 Jan 2022 03:16:19 +0000 (03:16 +0000)]
Merge branch 'doc-improvs-ii' into 'main'
Doc improvements on textures
See merge request GNOME/gtk!4342
Matthias Clasen [Fri, 7 Jan 2022 03:15:48 +0000 (03:15 +0000)]
Merge branch 'wip/chergert/fix-textview-dnd-move-same-view' into 'main'
textview: remove drag selection after dnd move action
See merge request GNOME/gtk!4346
Christian Hergert [Fri, 7 Jan 2022 00:30:34 +0000 (16:30 -0800)]
textview: remove drag selection after dnd move action
If we have a GDK_ACTION_MOVE, we need to delete the selection. However,
previously this only worked when the drop target and drag source were
different applications, as the selection would get messed up along the
way.
Instead, we stash marks for the duration of the operation so that we can
delete the appropriate selection when completing the move.
Matthias Clasen [Thu, 6 Jan 2022 19:56:16 +0000 (14:56 -0500)]
docs; Update supported backends
Some strings have changed here.
Matthias Clasen [Thu, 6 Jan 2022 19:19:31 +0000 (19:19 +0000)]
Merge branch 'docs-improvs-i' into 'main'
docs: Improve docs for four classes
See merge request GNOME/gtk!4337
Benjamin Otte [Thu, 6 Jan 2022 19:07:58 +0000 (19:07 +0000)]
Merge branch 'wip/otte/for-main' into 'main'
testsuite: clear_current() when done
See merge request GNOME/gtk!4343
Maximiliano Sandoval R [Thu, 6 Jan 2022 16:42:17 +0000 (17:42 +0100)]
docs: State that Textures are thread safe gobjects
Maximiliano Sandoval R [Thu, 6 Jan 2022 16:40:26 +0000 (17:40 +0100)]
docs: Improve docs for MemoryTexture
Maximiliano Sandoval R [Thu, 6 Jan 2022 16:39:06 +0000 (17:39 +0100)]
gir: Add type annotations for {GL,Memory}Texture
Maximiliano Sandoval R [Thu, 6 Jan 2022 16:36:12 +0000 (17:36 +0100)]
docs: Improve docs for gdktexture.c
Benjamin Otte [Thu, 6 Jan 2022 18:23:29 +0000 (19:23 +0100)]
glcontext: Don't spew warnings on surfaceless contexts
Get the display directly instead of via the nonexisting surface.
Benjamin Otte [Thu, 6 Jan 2022 18:08:42 +0000 (19:08 +0100)]
testsuite: clear_current() when done
That way we ensure that the GL context(s) get disposed, which they
previously weren't due to them still being the current context.
This also implicitly adds testing of gLContext destruction, which
previously wasn't ever done by any test.
Jordi Mas [Thu, 6 Jan 2022 07:25:29 +0000 (08:25 +0100)]
Update Catalan translation
Maximiliano Sandoval R [Wed, 5 Jan 2022 11:44:23 +0000 (12:44 +0100)]
docs: Add misc links
Maximiliano Sandoval R [Wed, 5 Jan 2022 11:43:06 +0000 (12:43 +0100)]
docs: Improve docs for gskrendernode.c
Maximiliano Sandoval R [Wed, 5 Jan 2022 11:36:55 +0000 (12:36 +0100)]
docs: Improve docs for gtksnapshot.c
Maximiliano Sandoval R [Wed, 5 Jan 2022 11:24:41 +0000 (12:24 +0100)]
docs: Improve docs for gtkversion.h
Maximiliano Sandoval R [Wed, 5 Jan 2022 11:24:06 +0000 (12:24 +0100)]
docs: Improve docs for gtkactionable.c
Aleksandr Melman [Wed, 5 Jan 2022 11:03:11 +0000 (11:03 +0000)]
Update Russian translation
Matthias Clasen [Tue, 4 Jan 2022 18:58:14 +0000 (18:58 +0000)]
Merge branch 'wip/smcv/gresource-internal' into 'main'
build: Tell glib-compile-resources to make symbols internal where possible
See merge request GNOME/gtk!4334
Simon McVittie [Tue, 4 Jan 2022 17:41:34 +0000 (17:41 +0000)]
build: Tell glib-compile-resources to make symbols internal where possible
Partial solution to https://gitlab.gnome.org/GNOME/gtk/-/issues/4598
Signed-off-by: Simon McVittie <smcv@debian.org>
Aleksandr Melman [Tue, 4 Jan 2022 17:00:55 +0000 (17:00 +0000)]
Update Russian translation
Emmanuele Bassi [Tue, 4 Jan 2022 15:54:05 +0000 (15:54 +0000)]
Merge branch 'label-fix-section-link' into 'main'
docs: Fix link to section in GtkLabel
See merge request GNOME/gtk!4333
Marco Melorio [Tue, 4 Jan 2022 15:33:00 +0000 (16:33 +0100)]
docs: Fix link to section in GtkLabel
Matthias Clasen [Tue, 4 Jan 2022 14:51:05 +0000 (14:51 +0000)]
Merge branch 'fix-hc-warning' into 'main'
gdk/display-wayland: Don't bypass portal for theme entries
Closes #4593
See merge request GNOME/gtk!4331
Hugo Carvalho [Tue, 4 Jan 2022 14:12:59 +0000 (14:12 +0000)]
Update Portuguese translation
Luca Bacci [Tue, 4 Jan 2022 13:59:08 +0000 (13:59 +0000)]
Merge branch 'gtk-grab-file-chooser-native-win32' into 'main'
GTK grab for GtkFileChooserNativeWin32
Closes #4582
See merge request GNOME/gtk!4329
Florian Müllner [Tue, 4 Jan 2022 13:29:13 +0000 (14:29 +0100)]
gdk/display-wayland: Don't bypass portal for theme entries
When commit
49589e1da added support for the new high-contrast key,
it missed that the getter should only use the setting directly when
not going through the portal.
https://gitlab.gnome.org/GNOME/gtk/-/issues/4593
Daniel Mustieles [Tue, 4 Jan 2022 13:38:09 +0000 (14:38 +0100)]
Updated Spanish translation
Matthias Clasen [Tue, 4 Jan 2022 13:09:39 +0000 (13:09 +0000)]
Merge branch 'noexecstack' into 'main'
Make our stack noexec
Closes #4598
See merge request GNOME/gtk!4330
Matthias Clasen [Tue, 4 Jan 2022 12:51:56 +0000 (07:51 -0500)]
Make our stack noexec
The change to use ld and objcopy for resources
had some side-effects: it leaked a few symbols
and made our stack executable. We don't want that.
Use -z nonexecstack and --strip-all to avoid this.
Fixes: #4598
Daniel Mustieles [Tue, 4 Jan 2022 11:18:11 +0000 (12:18 +0100)]
Updated Spanish translation
Luca Bacci [Tue, 4 Jan 2022 09:44:54 +0000 (10:44 +0100)]
Use a GTK grab when showing a modal GtkFileChooserNativeWin32
Yuri Chornoivan [Mon, 3 Jan 2022 20:51:23 +0000 (20:51 +0000)]
Update Ukrainian translation
Emmanuele Bassi [Mon, 3 Jan 2022 13:34:00 +0000 (13:34 +0000)]
Merge branch 'fredmorcos-master-patch-48389' into 'main'
Minor doc fix
See merge request GNOME/gtk!4325
Luca Bacci [Mon, 3 Jan 2022 13:11:04 +0000 (13:11 +0000)]
Merge branch 'wgl-legacy' into 'main'
GSK/GL: Relax check for GL 3.x+ legacy contexts
See merge request GNOME/gtk!4187
Fred Morcos [Mon, 3 Jan 2022 10:27:51 +0000 (10:27 +0000)]
Minor doc fix
Luca Bacci [Mon, 3 Jan 2022 09:51:10 +0000 (09:51 +0000)]
Merge branch 'for-main' into 'main'
For main
See merge request GNOME/gtk!4322
Matthias Clasen [Mon, 3 Jan 2022 02:52:45 +0000 (02:52 +0000)]
Merge branch 'matthiasc/for-main' into 'main'
fontchooser: Use new hb api
See merge request GNOME/gtk!4323
Matthias Clasen [Mon, 3 Jan 2022 02:35:00 +0000 (21:35 -0500)]
fontbutton: Pass the fontmap to the dialog
Matthias Clasen [Mon, 3 Jan 2022 02:34:05 +0000 (21:34 -0500)]
fontchooser: Cosmetics
Use harfbuzz api to format variations and features.
That matches what pango uses to parse them.
Matthias Clasen [Sun, 2 Jan 2022 17:03:52 +0000 (12:03 -0500)]
fontchooser: Use new hb api
Use hb_font_get_var_coords_design if we have it.
This should fix our handling of fonts with AVAR.
Matthias Clasen [Sun, 2 Jan 2022 17:49:49 +0000 (17:49 +0000)]
Merge branch 'wip/antoniof/expression-autocleanup' into 'main'
gtk: Define the GtkExpression autocleanup func
See merge request GNOME/gtk!4319
António Fernandes [Sun, 2 Jan 2022 17:49:48 +0000 (17:49 +0000)]
gtk: Define the GtkExpression autocleanup func
Luca Bacci [Sun, 2 Jan 2022 17:47:56 +0000 (18:47 +0100)]
Remove some unneeded files from gdk/win32
bdfcursor.c, cursor.bdf and libwntab32x.la
Luca Bacci [Sun, 2 Jan 2022 17:39:29 +0000 (18:39 +0100)]
Add hid.lib to pkg-config file listing
Luca Bacci [Sun, 2 Jan 2022 17:26:08 +0000 (18:26 +0100)]
Remove leftover code dealing with input-only windows
Luca Bacci [Sun, 2 Jan 2022 17:22:18 +0000 (18:22 +0100)]
Fix compilation with clang
From https://github.com/msys2/MINGW-packages/pull/9509
Luca Bacci [Sun, 2 Jan 2022 17:28:50 +0000 (18:28 +0100)]
Do not use GetProcAddress for FlashWindowEx
It's available since Windows XP
Luca Bacci [Tue, 14 Dec 2021 17:33:28 +0000 (18:33 +0100)]
Remove call to ShowOwnedPopups (FALSE) to hide owned windows
This is needed to fully support windows with the property
"destroy-with-parent" set to FALSE.
Luca Bacci [Tue, 14 Dec 2021 17:32:51 +0000 (18:32 +0100)]
Remove WM_SYNCPAINT message handler
It was added to work around what seemed to be an OS or graphics
driver issue on Windows XP. The issue was not reproducible on
Windows Vista anyway.
References:
* https://bugzilla.gnome.org/show_bug.cgi?id=153567
* https://gitlab.gnome.org/GNOME/gtk/-/commit/
c8fef535
* https://devblogs.microsoft.com/oldnewthing/
20120723-00/?p=7073
Matthias Clasen [Sun, 2 Jan 2022 01:12:53 +0000 (01:12 +0000)]
Merge branch 'ebassi/issue-4576' into 'main'
Update the accessible description of MenuButton
Closes #4576
See merge request GNOME/gtk!4317
Matthias Clasen [Sun, 2 Jan 2022 00:51:43 +0000 (00:51 +0000)]
Merge branch 'radioactiveman-main-patch-13472' into 'main'
texture: Fix typo in error message
See merge request GNOME/gtk!4311
Matthias Clasen [Sun, 2 Jan 2022 00:50:57 +0000 (00:50 +0000)]
Merge branch 'wip-fontchooser-tewaks' into 'main'
Revert "fontchoserwidget: Do our own face filtering"
See merge request GNOME/gtk!4314
Emmanuele Bassi [Sun, 2 Jan 2022 00:35:53 +0000 (00:35 +0000)]
Update the accessible description of MenuButton
We update the labelled-by relation, but we never update the described-by
one.
Fixes: #4576
Matthias Clasen [Fri, 31 Dec 2021 14:17:42 +0000 (09:17 -0500)]
fontchooser: Speed up fature examples
We were doing unnecessary work here, which could
get really slow with some fonts. Just compute
the reverse charmap once and reuse it.
Matthias Clasen [Sat, 1 Jan 2022 20:35:31 +0000 (15:35 -0500)]
Revert "fontchooserwidget: Revise handling of named instances"
This reverts commit
2dc56a6e9ba9ec6fb430e9181968fea08367f9ff.
This wasn't ready yet.
Matthias Clasen [Sat, 1 Jan 2022 20:35:23 +0000 (15:35 -0500)]
Revert "fontchoserwidget: Do our own face filtering"
This reverts commit
b7b6c147f9aba32047ac157e825d5517ac92a4ed.
This was premature.
Emmanuele Bassi [Sat, 1 Jan 2022 20:22:18 +0000 (20:22 +0000)]
Merge branch 'bilelmoussaoui/g-i' into 'main'
gdk: add missing nullable annotations
See merge request GNOME/gtk!4310
Bilal Elmoussaoui [Sat, 1 Jan 2022 18:20:29 +0000 (19:20 +0100)]
gtk: mark few GtkPrinterSettings as nullable
Everything that makes use of gtk_printer_settings_get should be nullable
Because the hashtable might not contain the key and there's no default value provided
Bilal Elmoussaoui [Sat, 1 Jan 2022 18:11:10 +0000 (19:11 +0100)]
gtk: mark few GtkFileChooser functions as nullable
- get_file, if no file is selected returns a NULL
- get_id, if the interface doesn't implement such function returns NULL
Bilal Elmoussaoui [Sat, 1 Jan 2022 18:07:13 +0000 (19:07 +0100)]
gtk: mark gtk_flatten_list_model_get_model_for_item as nullable
Bilal Elmoussaoui [Sat, 1 Jan 2022 18:05:33 +0000 (19:05 +0100)]
gtk: mark gtk_mount_operation_get_parent as nullable
Bilal Elmoussaoui [Sat, 1 Jan 2022 18:05:06 +0000 (19:05 +0100)]
gtk: mark gtk_list_box_get_adjustment as nullable
similar to its setter function
Bilal Elmoussaoui [Sat, 1 Jan 2022 17:38:56 +0000 (18:38 +0100)]
gtk: mark MenuButton::get_label/get_icon_name as nullable
Bilal Elmoussaoui [Sat, 1 Jan 2022 17:33:29 +0000 (18:33 +0100)]
gtk: mark gtk_icon_view_create_drag_icon as nullable
Bilal Elmoussaoui [Sat, 1 Jan 2022 17:26:40 +0000 (18:26 +0100)]
gtk: mark gtk_glarea_get_context as nullable
Thomas Lange [Sat, 1 Jan 2022 17:23:22 +0000 (17:23 +0000)]
texture: Fix typo in error message
Bilal Elmoussaoui [Sat, 1 Jan 2022 17:19:41 +0000 (18:19 +0100)]
gtk: mark gtk_text_mark_get_buffer as nullable
Bilal Elmoussaoui [Sat, 1 Jan 2022 17:17:31 +0000 (18:17 +0100)]
gtk: mark gtk_lock_button_get_permission as nullable
like the constructor/setter
Bilal Elmoussaoui [Sat, 1 Jan 2022 17:12:05 +0000 (18:12 +0100)]
gtk: mark buildable_get_id as nullable
the vfunc can return a nullable
Bilal Elmoussaoui [Sat, 1 Jan 2022 17:04:24 +0000 (18:04 +0100)]
gtk: mark MultiSelection::get_model as nullable
the constructor & setter takes a nullable model
Bilal Elmoussaoui [Sat, 1 Jan 2022 16:59:35 +0000 (17:59 +0100)]
gtk: mark gtk_native_get_for_surface as nullable
Bilal Elmoussaoui [Sat, 1 Jan 2022 16:56:07 +0000 (17:56 +0100)]
gtk: mark gtk_no_selection_get_model nullable
The constructor is nullable so should the getter be
Bilal Elmoussaoui [Sat, 1 Jan 2022 16:49:11 +0000 (17:49 +0100)]
gtk: fix PasswordEntry annotation
Bilal Elmoussaoui [Sat, 1 Jan 2022 16:45:08 +0000 (17:45 +0100)]
gtk: add nullable annotations to PopoverMenuBar/PopoverMenu
The constructor/setter accepts a null as a model so should the getter
Bilal Elmoussaoui [Sat, 1 Jan 2022 16:39:45 +0000 (17:39 +0100)]
gtk: add nullable annotations for Scrollable getters
The adjustment setters takes a nullable and so should the getters be annotated
Bilal Elmoussaoui [Sat, 1 Jan 2022 16:31:38 +0000 (17:31 +0100)]
gtk: add nullable annotation to gtk_css_section_get_file
The constructor takes a nullable file param
Bilal Elmoussaoui [Sat, 1 Jan 2022 16:03:10 +0000 (17:03 +0100)]
gdk: add missing nullable annotations
Matthias Clasen [Fri, 31 Dec 2021 18:32:49 +0000 (18:32 +0000)]
Merge branch 'fontchooser-tweaks' into 'main'
fontchooserwidget: Avoid a crash
See merge request GNOME/gtk!4309
Matthias Clasen [Fri, 31 Dec 2021 14:52:48 +0000 (09:52 -0500)]
fontchoserwidget: Do our own face filtering
Pango may not do this for us, so don't rely on it.
We only show one face with a given name, and we
prefer a variable face over a non-variable one.
The check for variable faces requires new Pango
API that will be in Pango 1.52.
Emmanuele Bassi [Fri, 31 Dec 2021 14:55:20 +0000 (14:55 +0000)]
Merge branch 'wip/baedert/for-master' into 'main'
baseline = -1 means no baseline
Closes #4385
See merge request GNOME/gtk!4307
Matthias Clasen [Fri, 31 Dec 2021 14:50:47 +0000 (09:50 -0500)]
fontchooserwidget: Revise handling of named instances
Allowing to tweak the axes of named instances does
not do any harm. If we don't, we have to worry that
we need at least one non-named-instance in the face
list, and make it more obvious how to pick it out.
Matthias Clasen [Fri, 31 Dec 2021 14:49:40 +0000 (09:49 -0500)]
fontchooserwidget: Avoid a crash
languages may be NULL, we need to be more careful here.
Matthias Clasen [Fri, 31 Dec 2021 14:48:34 +0000 (09:48 -0500)]
maplistmodel: Cosmetics
Timm Bäder [Fri, 31 Dec 2021 13:41:35 +0000 (14:41 +0100)]
inspector: Fix coding style
ffs
Timm Bäder [Fri, 31 Dec 2021 09:42:07 +0000 (10:42 +0100)]
baseline = -1 means no baseline
Fixes #4385
Matthias Clasen [Fri, 31 Dec 2021 04:30:04 +0000 (04:30 +0000)]
Merge branch 'fontchooser-cleanups' into 'main'
fontchooser: Stop using pangofc api
See merge request GNOME/gtk!4306
Matthias Clasen [Fri, 31 Dec 2021 03:35:08 +0000 (22:35 -0500)]
fontchooser: Stop using pangofc api
Pango now has backend-independent api for all
we need, so we can drop all the ifdefs.
Emmanuele Bassi [Thu, 30 Dec 2021 17:12:59 +0000 (17:12 +0000)]
Merge branch 'bilelmoussaoui/g-i' into 'main'
g-i: add missing nullable annotation
See merge request GNOME/gtk!4304
Bilal Elmoussaoui [Thu, 30 Dec 2021 16:52:53 +0000 (16:52 +0000)]
g-i: add missing nullable annotation
the constructor takes a nullable expression parameter, so should the getter be
Matthias Clasen [Thu, 30 Dec 2021 14:59:38 +0000 (09:59 -0500)]
4.6.0
Yuri Chornoivan [Wed, 29 Dec 2021 22:17:32 +0000 (22:17 +0000)]
Update Ukrainian translation
Matthias Clasen [Wed, 29 Dec 2021 17:23:16 +0000 (17:23 +0000)]
Merge branch 'doc-window' into 'main'
Document built-in actions on GtkWindow
See merge request GNOME/gtk!4297
Matthias Clasen [Wed, 29 Dec 2021 14:58:53 +0000 (14:58 +0000)]
Merge branch 'wip/chergert/4575-fix-texthistory-selection' into 'main'
testsuite: ignore texthistory selection on delete/backspace
Closes #4575
See merge request GNOME/gtk!4287
Hofer-Julian [Wed, 29 Dec 2021 14:46:59 +0000 (15:46 +0100)]
docs: Add missing star to block comment
Hofer-Julian [Wed, 29 Dec 2021 10:12:29 +0000 (11:12 +0100)]
doc: Fix docs of window.minimize
Hofer-Julian [Wed, 29 Dec 2021 10:11:26 +0000 (11:11 +0100)]
docs: Document built-in actions on GtkWindow